#include "carsettings.h"

Carsettings::Carsettings()
{
	v_width = 340;
	v_height = 388;

	isMovable = true;

	position.x = 50;
	position.y = 35;
	
	col2 = 230;

	// FIXME camera sensitivity is missing
	addSection("Car Settings", 0, 0);

	row+=8;
	addMutator("carsetting_suspensionstiffness", cmd.gen("carsetting_suspensionstiffness_dec"), cmd.gen("carsetting_suspensionstiffness_inc"), 0, 0);
	addMutator("carsetting_suspensiondamping", cmd.gen("carsetting_suspensiondamping_dec"), cmd.gen("carsetting_suspensiondamping_inc"), 0, 0);
	addMutator("carsetting_suspensioncompression", cmd.gen("carsetting_suspensioncompression_dec"), cmd.gen("carsetting_suspensioncompression_inc"), 0, 0);
	addMutator("carsetting_rollinfluence", cmd.gen("carsetting_rollinfluence_dec"), cmd.gen("carsetting_rollinfluence_inc"), 0, 0);
	addMutator("carsetting_suspensionrestlength", cmd.gen("carsetting_suspensionrestlength_dec"), cmd.gen("carsetting_suspensionrestlength_inc"), 0, 0);

	row+=8;
	addMutator("carsetting_steeringincrement", cmd.gen("carsetting_steeringincrement_dec"), cmd.gen("carsetting_steeringincrement_inc"), 0, 0);
	addMutator("carsetting_steeringclamp", cmd.gen("carsetting_steeringclamp_dec"), cmd.gen("carsetting_steeringclamp_inc"), 0, 0);
	addMutator("carsetting_exponentialsteering", cmd.gen("carsetting_exponentialsteering_dec"), cmd.gen("carsetting_exponentialsteering_inc"), 0, 0);

	row+=8;
	addCheckbox("joystick", cmd.gen("joystick_toggle"), 0, 0);

	v_width = col3 + 40;
	v_height = row-rowspacer+10+10; // 10 = height of 1 line, 10 = horizontal margin

}

Carsettings::~Carsettings()
{
}
